import {
  TileMapServiceImageryProvider
} from '@cesiumjs';

export default {
  tileImagery() {
    return {
      name: "tileImagery",
      title: "",
      create(options) {
        const {
          url,
          fileExtension
        } = options;
        if (!url) return null;
        const provider = new TileMapServiceImageryProvider({
          url,
          fileExtension
        })
        return provider
      }
    }
  },
}
